﻿<ResourceDictionary 
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Coding4Fun.Toolkit.Controls">
	<Style TargetType="local:SuperImage">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="local:SuperImage">
					<Grid>
						<Border
							x:Name="PlaceholderBorder"
							Opacity="{TemplateBinding PlaceholderOpacity}"
                            Background="{TemplateBinding PlaceholderBackground}">
							<Image 
								x:Name="PlaceholderImage"
                                Source="{TemplateBinding PlaceholderImageSource}"
                                Stretch="{TemplateBinding PlaceholderImageStretch}"/>
						</Border>
						<Image 
							x:Name="PrimaryImage" 
							Source="{TemplateBinding Source}"
                            Stretch="{TemplateBinding Stretch}"/>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
</ResourceDictionary>